
var player_hero = require('./player_hero')();


cc.Class({
    extends: cc.Component,

    properties: {
        move_Node:cc.Node,
        hero_prefab:cc.Prefab,
        hero_Altas:cc.SpriteAtlas,

    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this.playHero=[];
        // this.addHero();
    },
    onEnable(){

    },
    addHero(){
        let pos=cc.v2(0,0);
        player_hero.createPlayer_hero(this.hero_prefab, this.hero_Altas, pos, this.node, this.playHero);
    },

    start () {

    },

    // update (dt) {},
});
